package com.bwie.service;

import com.bwie.pojo.User;
import com.bwie.service.impl.UserFeignImpl;
import com.bwie.utils.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author :Beyond🎸🎸
 * @date : 2025-10-22 19:09:17
 * @description 调用用户服务
 **/
@FeignClient(value = "server5-day1-user",fallback = UserFeignImpl.class )
public interface UserFeign {

    @GetMapping("/user/index/getUserNameToSave/{id}")
    User getUserNameToSave(@PathVariable("id")Integer id);


}


